//
//  HZNetTools.h
//  网络工具类 OC
//
//  Created by 黑眼圈 on 16/4/18.
//  Copyright © 2016年 heiyan. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

//枚举
typedef NS_ENUM(NSInteger,HZRequestMethod){
    
    HZRequestMethodGet,
    HZRequestMethodPost
};

@interface HZNetTools : AFHTTPSessionManager

//单例
+(instancetype)sharedTools;

//get请求
-(void)getRequest:(NSString*)urlstring parameters:(id)parameters finishedBlock:(void(^)(id responstObject,NSError *error))finishedBlock;

//post请求
-(void)postRequest:(NSString*)urlstring parameters:(id)parameters finishedBlock:(void(^)(id responstObject,NSError *error))finishedBlock;

@end
